/**
	* <p><code>Linear</code> Linear easing function, adopted from robertpenner.com.</p>
	* 
	* This software is derived from code bearing the copyright notice,
	*
	* Copyright © 2001 Robert Penner
  * All rights reserved.
  *
  * and governed by terms of use at http://www.robertpenner.com/easing_terms_of_use.html
  * 
	* @version 1.0
	*
	* 
	*/

package singularity.easing;

  class Linear extends Easing {
    
    public function new()
    {
      super();
      
      __type = Easing.LINEAR;
    }
	   
	  public override function easeIn (t:Float, b:Float, c:Float, d:Float, ?optional1:Float=0, ?optional2:Float=0):Float 
	  {
		   return c*t/d + b;
	  }
	   
	  public override function easeOut (t:Float, b:Float, c:Float, d:Float, ?optional1:Float=0, ?optional2:Float=0):Float 
	  {
		   return c*t/d + b;
	  }
	   
	  public override function easeInOut (t:Float, b:Float, c:Float, d:Float, ?optional1:Float=0, ?optional2:Float=0):Float 
	  {
		   return c*t/d + b;
	  }
	}
